// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'starter.controllers' is found in controllers.js
angular.module('app', ['ionic', 'pascalprecht.translate', 'app.values', 'app.controllers', 'app.services'])
.config(function(routerProvider,i18nProvider,I18N_LANGUAGES) {

  routerProvider.configRouter();

  i18nProvider.configI18n(I18N_LANGUAGES);

})
.run(function($ionicPlatform,pluginSrv,i18n) {
  $ionicPlatform.ready(function() {

    pluginSrv.initPlugin();

    i18n.initI18n();

  });
});

